#!/usr/bin/python
# coding:utf-8
# auther:DT
# 2017-08-09_03-05-16


def y_yield(n):
    print("You love me.")
    while n > 0:
        print("before yield")
        yield n
        n = n - 1
        print("after yeild")

ge = y_yield(3)
ge.__next__()
ge.__next__()
ge.__next__()
ge.__next__()
